//
//  ShareController.h
//  YuiKe
//
//  Created by yuike5 yuike5 on 11-10-25.
//  Copyright 2011年 yuike. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WeiboHeader.h"
#import "MBProgressHUD.h"
#import "WeiboSuggestionController.h"
#import "UITextViewAdditions.h"
#import "WeiboEmotionController.h"
#import "WeiboAtController.h"


@interface UITableViewCellforTextView :  UITableViewCell
@end


@interface ShareController : UITableViewController<WeiboCommitDelegate, UIActionSheetDelegate>
{
    WeiboBase* weibobase;
    
    UITableViewCell* vCell;
    UITextView* weiboTextView; // assign
    UIImageView* weiboImageView; // assign
    UIButton* weiboButtonCheck; // assign
    UIButton* weiboButtonSuggestx;//assign
    UIButton* weiboButtonEmotionx;//assign
    UIButton* weiboButtonAtx;//assign
    UILabel* weiboCpsLabelReal; // assign
    UILabel* weiboCpsLabelShow;//assign
    
    BOOL weiboImageSelected;
    MBProgressHUD* HUD;
    
    NSString* weibo_test_backup;
    NSString* weibo_hide_text_head;
    NSString* weibo_hide_text_tail;
    
    
    UIPopoverController* mPopoverController;
    WeiboSuggestionController* mWeiboSuggestionController;
    WeiboEmotionController* mWeiboEmotionController;
    WeiboAtController* mWeiboAtController;
    NSMutableArray* emotionsx; // 都有的表情
    
    NSString* titleForFooterInSection;
    
    id doneDelegate;
    SEL doneSel;
    NSString* product_title;
    NSString* product_url;
    NSString* product_summary;
    NSString* imageurl;
    
    BOOL bool_SendBarBtnPressed_forAuth; // 授权回来，不用再点击发送按钮了。
}
-(id)initWithStyle:(UITableViewStyle)style andWeiboBase:(WeiboBase*)wb;
-(void) setDoneDelegate:(id)delegate sel:(SEL)sel; //-(void) beforeDoneAccountManager;

-(void) setWeiboText:(NSString*)text;
-(void) setWeiboCpsUrlShow:(NSString*)show andReal:(NSString*)real;
-(void) setWeiboImage:(UIImage*)image;
-(void) setWeiboSuggests:(NSArray*)array;

@property (nonatomic, copy) NSString* weibo_hide_text_head;
@property (nonatomic, copy) NSString* weibo_hide_text_tail;
@property (nonatomic, copy) NSString* titleForFooterInSection;
@property (nonatomic, copy) NSString* product_title;
@property (nonatomic, copy) NSString* product_url;
@property (nonatomic, copy) NSString* product_summary;
@property (nonatomic, copy) NSString* imageurl;

@end
